﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchServiceBulletin.ascx.vb" Inherits="WebForm_Main_SearchServiceBulletin" %>
<%@ Register Namespace="My" TagPrefix="cc1" %>
<%@ Register Src="~/WebForm/Main/AddServiceBulletin.ascx" TagName="AddServiceBulletin" TagPrefix="My" %>

<asp:UpdatePanel ID="upAddBulletin" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <My:MyGridView ID="gvBulletin" SkinID="pager" BorderWidth="0px" runat="server" AllowPaging="True"
            AllowHoverEffect="False" AllowHoverSelect="False" PageSize="10" DataKeyNames="ServiceID" meta:resourcekey="gv" MouseOverColor="" MySortDirection="Ascending" TotalRowCount="0">
            <PagerSettings Position="Top" />
            <Columns>
                <asp:TemplateField meta:resourcekey="bfServiceTime">
                    <itemtemplate>
                          <%#Eval("StartDate", "{0:yyyy/MM/dd}")%>~<%#Eval("EndDate", "{0:yyyy/MM/dd}")%>
                    </itemtemplate>
                    <itemstyle width="100px" />
                </asp:TemplateField>
                <asp:TemplateField meta:resourcekey="bfBulletinSubject" HeaderStyle-HorizontalAlign="Left"
                    ItemStyle-HorizontalAlign="Left">
                    <itemtemplate>   
                       <asp:LinkButton ID="lknBulletinSubject" runat="server" Text='<%#Bind("ServiceSubject")%>' CommandName="lknBulletinSubject" ToolTip='<%#Bind("ServiceSubject")%>' ></asp:LinkButton>
                    </itemtemplate>
                </asp:TemplateField>
            </Columns>
        </My:MyGridView>
        <My:AddServiceBulletin ID="AddServiceBulletin1" runat="server"></My:AddServiceBulletin>
    </ContentTemplate>
</asp:UpdatePanel>